package com.juqimiao.raccoon.commodity.dto.query;

import com.juqimiao.linn.transfer.query.Query;
import com.juqimiao.linn.transfer.query.SortingCriteria;
import com.juqimiao.raccoon.commodity.constraints.OperationNewGroup;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class ListCategoryGroupQry extends Query {

    @NotEmpty(groups = {OperationNewGroup.class})
    @NotNull(groups = {OperationNewGroup.class})
    private String groupType;

    @NotEmpty(groups = {OperationNewGroup.class})
    @NotNull(groups = {OperationNewGroup.class})
    private String scenario;
    @NotNull(groups = {OperationNewGroup.class})
    private Boolean publish;
    @NotNull(groups = {OperationNewGroup.class})
    private SortingCriteria sortOrderSortCrt;

    private Boolean loadDirectChildren;
}
